import java.util.Comparator;

/**
 * @author Zhiqiang Zhu
 *   Lab03
 *   Comparator for field "Region"
 *   Nov/07/2020
 */
public class LocationComparator implements Comparator<BankRecords> {

	@Override
	public int compare(BankRecords o1, BankRecords o2) {
		// use compareTo to compare strings
		return o1.getRegion().compareTo(o2.getRegion());
	}

}
